@extends('layouts.default') @section('main')
    <script type="text/javascript" src="{{URL::asset('js/')}}/ajaxfileupload.js"></script>
    <script type="text/javascript" src="{{URL::asset('js/')}}/common.js"></script>
    <div id="content">
        <div id="content-header">
            <div id="breadcrumb">
                <a href="{{url('home')}}" title="返回首页" class="tip-bottom"><i
                            class="icon-home"></i> 首页</a>
                <a href="{{url('institution/list')}}" class="tip-bottom">机构管理</a>
                <a href="#" class="current">新增机构</a>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span9">
                    <div class="widget-box">
                        <div class="widget-title">
						<span class="icon"> <i class="icon-align-justify"></i>
						</span>
                            <h5>机构详情</h5>
                        </div>
                        <div class="widget-content nopadding">
                            <form action="{{url('institution/create')}}" method="post" class="form-horizontal" id="adForm" >
                                <div class="control-group">
                                    <label class="control-label">机构名称 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="subject" value="{{$list->subject}}" readonly />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">机构类型 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="subject" readonly  value="@if($list->type=='law')法律机构@elseif($list->type=='invest')投资机构@elseif($list->type=='makerspace')创客空间机构@elseif($list->type=='finance')经济机构@endif"  />
                                    </div>
                                </div>

                                <div class="control-group">
                                    <label class="control-label">所在地区 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="subject" value="{{$list->zone->name}}" readonly />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">详细地址 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="address" readonly value="{{$list->address}}"  />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">机构描述 :</label>
                                    <div class="controls">
                                        <textarea  class="textarea_editor span11" rows="5" name="description" >{{$list->description}}</textarea>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">排序 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="sort"  value="{{$list->sort}}" readonly />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">机构电话 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="tel" value="{{$list->tel}}" readonly />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">法人代表 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="represent" readonly value="{{$list->represent}}" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">机构邮箱 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="email" readonly value="{{$list->email}}"/>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">机构链接 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="url" readonly value="{{$list->url}}" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">机构传真 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="fax" readonly value="{{$list->fax}}" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">机构logo :</label>
                                    <div class="controls">
                                        <img src="{{getImage($list->icon)}}" width="100" height="100"/>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">详细页logo边上的简介 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" name="title" readonly value="{{$list->title}}" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">简介下的大图 :</label>
                                    <div class="controls">
                                        <img src="{{getImage($list->img)}}" width="100" height="100"/>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">详细页的logo:</label>
                                    <div class="controls">
                                        <img src="{{getImage($list->detail_img)}}" width="100" height="100"/>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">营业执照img :</label>
                                    <div class="controls">
                                        <img src="{{getImage($list->license)}}" width="100" height="100"/>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">营业执照备注 :</label>
                                    <div class="controls">
                                        <textarea  class="textarea_editor span11" rows="5" name="remark" placeholder="营业执照备注">{{$list->remark}}</textarea>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">是否置顶 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" readonly name="stick" value="@if($list->stick==1)是@elseif($list->stick==0)否@endif" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">是否推荐 :</label>
                                    <div class="controls">
                                        <input type="text" class="span11" readonly name="recommend" value="@if($list->recommend==1)是@elseif($list->recommend==0)否@endif" />
                                    </div>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

@stop
